package com.ygqh.baby.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.YgCommissionDetail;
import com.ygqh.baby.po.YgCommissionDetailExample;

public interface YgCommissionDetailMapper {
	int countByExample(YgCommissionDetailExample example);

	int deleteByExample(YgCommissionDetailExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgCommissionDetail record);

	int insertSelective(YgCommissionDetail record);

	List<YgCommissionDetail> selectByExample(YgCommissionDetailExample example);

	YgCommissionDetail selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgCommissionDetail record, @Param("example") YgCommissionDetailExample example);

	int updateByExample(@Param("record") YgCommissionDetail record, @Param("example") YgCommissionDetailExample example);

	int updateByPrimaryKeySelective(YgCommissionDetail record);

	int updateByPrimaryKey(YgCommissionDetail record);

	int countSuper(@Param("commissionId") Long commissionId, @Param("q") String q);

	List<YgCommissionDetail> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("commissionId") Long commissionId, @Param("q") String q);

	int addDetailBatch(@Param("detailList") List<YgCommissionDetail> detailList);

}
